package J11_28;

public class test {
    //自定义异常
    public class MyException extends Exception {
        private int errorCode;

        public MyException(String message, int errorCode) {
            super(message);
            this.errorCode = errorCode;
        }

        public int getErrorCode() {
            return errorCode;
        }
    }
}
